<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="BaseTable">

    <div class="layui-card-body padding-left-40">
        <label class="layui-form-item relative block">
            <div class="help-label label--prev"><b>Mode</b></div>
            <select class="layui-select" name="mode" lay-filter="SiteTheme">
                {foreach ['1'=>'NORMAL MODE','2'=>'SHARE MODE'] as $k=>$v}
                {if isset($vo.mode) and $vo.mode eq $v}
                <option selected value="{$v}">{$v}</option>
                {else}
                <option value="{$v}">{$v}</option>
                {/if}
                {/foreach}
            </select>
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>总人数</b></span>
            <input maxlength="500" class="layui-input" name="total_user_count" value='{$vo.total_user_count|default=""}'
                   vali-name="总人数" placeholder="请输总人数">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>真人人数</b></span>
            <input maxlength="500" class="layui-input" name="real_user_count" value='{$vo.real_user_count|default=""}'
                   vali-name="真人人数" placeholder="请输真人人数">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>盲盒ID</b></span>
            <input maxlength="500" class="layui-input" name="box_ids" value='{$vo.box_ids|default=""}'
                   vali-name="盲盒ID" placeholder="请输入盲盒ID">
            <span class="help-block">基于线上真实盒子ID，用|分割。 例如：1|2|3</span>
            <span class="help-block">注意:开始和结束不要加竖线  </span>
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>Battle次数</b></span>
            <input maxlength="500" class="layui-input" name="total_battle_times" value='{$vo.total_battle_times|default=""}'
                   vali-name="Battle次数" placeholder="请输Battle次数">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>水池初始值</b></span>
            <input maxlength="500" class="layui-input" name="pool_init_amount" value='{$vo.pool_init_amount|default="0"}'
                   vali-name="水池初始值" placeholder="请输水池初始值">
        </label>

        <label class="layui-form-item relative block">
            <div class="help-label label--prev"><b>水池是否重置</b></div>
            <select class="layui-select" name="is_init_pool" lay-filter="SiteTheme">
                {foreach ['1'=>'false','2'=>'true'] as $k=>$v}
                {if isset($vo.is_init_pool) and $vo.is_init_pool eq $k}
                <option selected value="{$k}">{$v}</option>
                {else}
                <option value="{$k}">{$v}</option>
                {/if}
                {/foreach}
            </select>
        </label>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗？" data-close>取消
        </button>
    </div>

</form>